package org.xhnews.ui;

import org.xhnews.charts.XYChartField;
import org.xhnews.charts.XYChartManager;

import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.component.LabelField;
import net.rim.device.api.ui.container.MainScreen;

public class ChartViewScreen extends MainScreen {
	public ChartViewScreen() {
		LabelField title = new LabelField("Charty CustomField V 0.6",
				LabelField.ELLIPSIS);
		setTitle(title);

		add(new LabelField("Label before charty", 0, -1, Field.FIELD_HCENTER));

		// instantiate the class
		XYChartField charty = new XYChartField(35, 10, 200, 120);
		// and its manager class
		XYChartManager myManager = new XYChartManager();
		myManager.add(charty);
		add(myManager);
		
//		TableField table=new TableField();
//		add(table);
	}
}
